<?php
class p1_event_detail extends BaseModel implements Retrievable {
	
	// contact details	
	var $host;
	var $contact;
	var $contact_email;
	var $location;
	var $city;
	var $state;
	var $country;
	var $website;
	
	// for ranking
	var $event;
	var $distance;
	var $time_to_complete;
	var $terrain;
	var $climate;
	var $factor;
	var $support;
	
    public function p1_event_detail($values) {
        parent::__construct($values);
    }

    public function validate() {
        $errors = Array();
		return (count($errors) === 0 ? true : $errors);
    }

    public static function get($id, $primaryKey='id') {
        return parent::get($id, __CLASS__, $primaryKey);
    }
    
    public static function getAll($searchArray=Array(), $sortArray=Array()) {
        return parent::getAll($searchArray, $sortArray, __CLASS__);
    }
    
}
?>